package com.ruoyi.result;

import lombok.Getter;

/**
 * /**
 **/
@Getter
public enum ResultEnum {
  CODE_200(200, "success"),
  OPR_FAILED(-1, "操作失败！"),
  CODE_2(-2, "缺少必填参数"),
  CODE_3(-3, "登录失败"),

  CODE_403(403, "没有获取授权！"),
  CODE_404(404, "找不到该路径！"),
  CODE_405(405, "请求方式错误！"),
  CODE_415(415, "请求参数格式错误！"),
  CODE_500(500, "服务器出错了，请联系后台开发人员！"),
  CODE_501(501, "无业务数据"),

  CODE_600(600, "验证码发送失败"),
  CODE_601(601, "验证码错误或已过期"),
  CODE_602(602, "填写的手机号与接收验证码的不一致"),
  CODE_60(602, "填写的手机号与接收验证码的不一致"),

  CODE_1001(1001, "恶意串改信息！"),
  CODE_1002(1002, "非admin用户不能修改admin！"),
  CODE_1003(1003, "费用申请为空"),
  CODE_1004(1004, "注册失败"),
  CODE_1005(1005, "注册失败,手机号码已经存在"),
  CODE_1006(1006, "登录失败,用户名或密码为空"),
  CODE_1007(1007, "登录失败,用户名不存在"),
  CODE_1008(1008, "登录失败,密码错误"),
  CODE_1009(1009, "找回密码失败，用户不存在.."),
  CODE_1010(1010, "更新失败.."),
  CODE_1011(1011, "登录失败,用户名或密码错误.."),
  CODE_1012(1012, "重新提交失败.."),
  CODE_1013(1013, "该手机号已被注册.."),
  CODE_1014(1014, "该手机号未填写");


  private Integer code;

  private String msg;

  ResultEnum(Integer code, String msg) {
    this.code = code;
    this.msg = msg;
  }

}
